package com.codeczx.mygeeknews;

import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;

import com.codeczx.mygeeknews.zhihu.DailyFragment;

public class MainActivity extends BaseActivity {

    private ZhihuMainFragment mZhihuFragment;
    private DailyFragment mDailyFragment;

    @Override
    protected int getLayout() {
        return R.layout.activity_main;
    }

    @Override
    protected void initEventAndData() {
        mZhihuFragment = new ZhihuMainFragment();
        mDailyFragment = new DailyFragment();
        FragmentManager fm = getSupportFragmentManager();
        FragmentTransaction ft = fm.beginTransaction();
        ft.add(R.id.fl_main_content,mDailyFragment);
        ft.commit();
    }
}
